package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.seacraft.pirateriot.SeacraftPirateRiotUserData;
import com.yanqu.road.entity.activity.seacraft.pirateriot.config.SeacraftPirateRiotChapterConfig;
import com.yanqu.road.entity.activity.seacraft.pirateriot.config.SeacraftPirateRiotEquipConfig;
import com.yanqu.road.entity.activity.seacraft.pirateriot.config.SeacraftPirateRiotMonsterConfig;
import com.yanqu.road.entity.activity.seacraft.pirateriot.config.SeacraftPirateRiotSectionConfig;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class SeacraftPirateRiotBussiness {

    public static Map<Integer, SeacraftPirateRiotChapterConfig> getSeacraftPirateRiotChapterConfigMap(int activityId) {
        return DaoHelper.getSeacraftPirateRiotChapterConfigDaoImpl().getSeacraftPirateRiotChapterConfigMap(activityId);
    }

    public static Map<Integer, SeacraftPirateRiotMonsterConfig> getSeacraftPirateRiotMonsterConfigMap(int activityId) {
        return DaoHelper.getSeacraftPirateRiotMonsterConfigDaoImpl().getSeacraftPirateRiotMonsterConfigMap(activityId);
    }

    public static Map<Integer, Map<Integer, SeacraftPirateRiotSectionConfig>> getSeacraftPirateRiotSectionConfigMap(int activityId) {
        return DaoHelper.getSeacraftPirateRiotSectionConfigDaoImpl().getSeacraftPirateRiotSectionConfigMap(activityId);
    }

    public static Map<Integer, SeacraftPirateRiotEquipConfig> getSeacraftPirateRiotEquipConfigMap(int activityId) {
        return DaoHelper.getSeacraftPirateRiotEquipConfigDaoImpl().getSeacraftPirateRiotEquipConfigMap(activityId);
    }

    // 玩家数据

    public static SeacraftPirateRiotUserData getSeacraftPirateRiotUserData(int activityId, long userId) {
        return DaoHelper.getSeacraftPirateRiotUserDataDaoImpl().getSeacraftPirateRiotUserData(activityId, userId);
    }

    public static boolean addSeacraftPirateRiotUserData(SeacraftPirateRiotUserData data) {
        return DaoHelper.getSeacraftPirateRiotUserDataDaoImpl().add(data);
    }

    public static boolean updateSeacraftPirateRiotUserData(SeacraftPirateRiotUserData data) {
        return DaoHelper.getSeacraftPirateRiotUserDataDaoImpl().update(data);
    }

    public static List<List<Integer>> getAllActivityChapter(long userId) {
        return DaoHelper.getSeacraftPirateRiotUserDataDaoImpl().getAllActivityChapter(userId);
    }

}
